<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    
    <style>
        *{
            padding: 0;
            margin: 0;
            font-size: 14px;
            color: #242424;
        }

        html,body{
            width: 100%;
            height: 100%;
        }

        .outer{
            width: 1000px;
            height: 400px;
            background: red;
        }

        .inner{
            width: 700px;
            height: 300px;
            background: green;
        }

        .center{
            width: 200px;
            height: 200px;
            background: blue;
        }

    </style>
</head>
<body>
    <div class="outer">
        <div class="inner">
            <div class="center">

            </div>
        </div>
    </div>

    <script>
        
        document.body.addEventListener('click',function(){
            console.log('body||documentElement');
        },true);
        var outer = document.getElementsByClassName('outer')[0];
        outer.addEventListener('click',function(){
            console.log('outer');
        },true);
        var inner = document.getElementsByClassName('inner')[0];
        inner.addEventListener('click',function(){
            console.log('inner');
        },true);
        var center = document.getElementsByClassName('center')[0];
        center.addEventListener('click',function(){
            console.log('center');
        },true);
        document.body.addEventListener('click',function(){
            console.log('body||documentElement');
        },false);
        outer.addEventListener('click',function(){
            console.log('outer');
        },false);
        center.addEventListener('click',function(){
            console.log('center');
        },false);
        inner.addEventListener('click',function(){
            console.log('inner');
        },false);
    </script>
</body>
</html>